import React, { Component } from 'react';

// import Pushwarehouse from "./../Warehouse/Pushwarehouse/index.tsx"


import { Table, Button } from 'antd';
import Model from './ui/Model';
import Models from './ui/Models';
import Header from './ui/Header';

// import Model from "@ views/Warehouse/Pushwarehouse/ui/Model.";

// interface TableProps
// {
//   rowKey:any;
// }

const columns = [
  {
    title: '入库日期',
    dataIndex: 'name',
  },
  {
    title: '入库单编号',
    dataIndex: 'age',
  },
  {
    title: '采购单编号',
    dataIndex: 'agec',
  },
  {
    title: '入库状态',
    dataIndex: 'storeState',
  },
  {
    title: '入库类型',
    dataIndex: 'storeType',
  },
  {
    title: '供应商编号',
    dataIndex: 'supply',
  },
  {
    title: '入货仓库',
    dataIndex: 'closedStore',
  },
  {
    title: '收货员',
    dataIndex: 'closed',
  },
  {
    title: '仓管员',
    dataIndex: 'storer',
  },
  {
    title: '操作',
    dataIndex: 'fuck',
  },
];

const data:any = [];
for (let i = 0; i < 46; i++) {
  data.push({
    key: `id${i}`,
    name: `2017.12.03 ${i}`,
    age:" RK160727154701",
    agec:" GG160727154701",
    address: `待入库 ${i}`,
    storeState:`待入库 ${i}`,
    storeType:`一般入库 ${i}`,
    supply:` 89${i}24`,
    closedStore:` 长江仓库`,
    storer:`李四`,
    closed:`张三`,
    fuck:<div style={{display:'flex' ,justifyContent:"space-between" ,width:"100%"} } > <Model/> <Models/></div>,
  });
}


class index extends Component {
    // state = {
      

    
      // onSelectChange = (selectedRowKeys:any) => {
      //   console.log('选中的key数组 改变: ', selectedRowKeys);
      //   this.setState({ selectedRowKeys });
      // };
    
      render() {
        // const { loading, selectedRowKeys } = this.state;
        // const rowSelection = {
        //   // 指定选中项的 key 数组，需要和 onChange 进行配合
        //   selectedRowKeys,
        //   // 选中项发生变化时的回调
        //   onChange: this.onSelectChange,
        // };
        // const hasSelected = selectedRowKeys.length > 0;
        return (
           
          <div style={{width:"100%"}}>
            <Header/>
          {/* rowSelection={rowSelection} */}
            <Table  columns={columns} dataSource={data} bordered  />
          
          </div>
        );
      }
    
}

export default index;

